From 78070b14f17dbb59145837bb37a95cdee7a4aa9d Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Fri, 20 Feb 2026 23:57:14 +0100 Subject: [PATCH] environment: Use replaceAll() The replace() function expects two parameters, likely the third one was ignored. Use replaceAll() to replace all the occurrences, not just the first one. Fixes: 007b6ca2e ("environment: Add convenience method for implicit animations") Part-of: (cherry picked from commit 10cd1a875ddaff97b0d2220d2ad7f650da8976df) --- js/ui/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/environment.js b/js/ui/environment.js index 3ebe8e261..f2dc69eef 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -149,7 +149,7 @@ function _easeActor(actor, params) { const callback = _makeEaseCallback(params, cleanup); // cancel overwritten transitions - let animatedProps = Object.keys(params).map(p => p.replace('_', '-', 'g')); + let animatedProps = Object.keys(params).map(p => p.replaceAll('_', '-')); animatedProps.forEach(p => actor.remove_transition(p)); if (easingDuration > 0 || !isReversed) -- 2.39.5